﻿using FB.Data.Models;
using FB.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace FB.Providers.EmployeeInfo
{
    [Table("emp_Teams")]
    public class Team : FBAuditModel, IOrder, IRecordState, IEmployeeInfoEntity
    {
        [Key, StringLength(8)]
        [Display(ResourceType = typeof(Resources.Models.Team), Name = "TEAMCode")]
        public string TEAMCode { get; set; }

        [Required, StringLength(256)]
        [Display(ResourceType = typeof(Resources.Models.Team), Name = "Name")]
        public string Name { get; set; }

        [Required, StringLength(8)]
        [Display(ResourceType = typeof(Resources.Models.Team), Name = "DEPTCode")]
        public string DEPTCode { get; set; }



        [EnumDataType(typeof(RecordState))]
        [Display(ResourceType = typeof(Resources.Models.Team), Name = "RecordState")]
        public RecordState RecordState { get; set; }

        [Display(ResourceType = typeof(Resources.Models.Team), Name = "Order")]
        public int? Order { get; set; }




        [ForeignKey("DEPTCode")]
        public virtual Department Department { get; set; }


        //public virtual ICollection<Employee> Employees { get; set; }
    }
}
